import { http, jumpExport } from '@/utils/http/axios';
import type { UploadFileParams } from '@/utils/http/axios/types';
// 获取活动用户管理列表
export function List(params) {
  return http.request({
    url: '/activityUser/list',
    method: 'get',
    params,
  });
}

// 删除/批量删除活动用户管理
export function Delete(params) {
  return http.request({
    url: '/activityUser/delete',
    method: 'POST',
    params,
  });
}

// 添加/编辑活动用户管理
export function Edit(params) {
  return http.request({
    url: '/activityUser/edit',
    method: 'POST',
    params,
  });
}

// 修改活动用户管理状态
export function Status(params) {
  return http.request({
    url: '/activityUser/status',
    method: 'POST',
    params,
  });
}

// 获取活动用户管理指定详情
export function View(params) {
  return http.request({
    url: '/activityUser/view',
    method: 'GET',
    params,
  });
}

// 导出活动用户管理
export function Export(params) {
  jumpExport('/activityUser/export', params);
}

// 导入Excel
export function ImportExcel(params: UploadFileParams) {
  return http.uploadFile(
    {
      url: '/activityUser/importExcel',
      method: 'post',
    },
    params
  );
}
